<extend name="Base/common"/>
<block name="header">
    <include file="Public/_nav"/>
    <link type="text/css" rel="stylesheet" href="__CSS__/wckc.css">


    <!-- <script type="text/javascript" src="__JS__/common.js"></script> -->
</block>


<block name="body">

      <!--   <include file="Public/_hot_sell"/> -->
        <!-- 左侧菜start -->
        <div class="col-xs-2">            
          <include file="Public/sidebar"  />
        </div>
        <!-- 左侧菜end -->
  <!--内容栏start-->
  <div class="col-xs-10 content"> 
     
       <ul class="nav nav-tabs">
           <li><a href="{:U('Index/indexCourse')}"><i class="icon icon-th-large"> </i>校本课程管理</a></li>
           <li class="active"><a href="{:U('Index/xbDocFiles')}"><i class="icon icon-th-large"></i>课程资料库</a></li>
           <li><a href="{:U('Student/classscore')}"><i class="icon icon-th-large"></i>学生成绩</a></li>
       </ul>
           <div class="right_box">
   <h3 style="color:#CC4444">&nbsp;&nbsp;<i class="icon icon-book"></i>&nbsp;&nbsp;已上传资料</h3>    
      
      <form method='post' id="form1" name="form1"  action="{:U('Index/xbDocFiles')}" class="form-horizontal">
                       <div class="form-group">
                       <div class="col-md-9">
                           <div class="input-group">
                              <span class="input-group-addon">资料类别</span>
                                  <select name="cate" id="cate" class="form-control" onchange="this.form.submit()">
                                      <option>{$Think.post.cate|default="所有类别"}</option>
                                      <option value="课程计划"> 课程计划（期初）</option>
                                      <option >备课汇总</option>
                                      <option >申报方案</option>
                                      <option >自编教材</option>
                                      <option >其他材料</option>
                                      <option >所有类别</option>                      
                                  </select>
                              <span class="input-group-addon fix-border fix-padding"> 学年 </span>
                                  <select class="form-control" name="year" id="year" onchange="this.form.submit()">
                                  <volist name="yearlist" id="vo">
                                  <option value="{$vo.year}"
                                  <if condition="$Think.cookie.year eq $vo['year']">selected</if> 
                                  > {$vo.year_ch}  </option>
                                  </volist>
                                  </select> 
                              <span class="input-group-addon fix-border fix-padding"> 教师 </span>
                              <input class="form-control" type="text" name="teacher" placeholder="请输入教师姓名"  value="{$cur.teacher}"/>
                               <span class="input-group-addon fix-border fix-padding"> 关键词: </span>
                         <input class="form-control" type="text" name="keywords" id="key" placeholder="请输入关键词"  value="{$cur.keywords}"/>
                              <span class="input-group-btn">
                                <button class="btn btn-primary" type="submit">&nbsp;查询&nbsp;</button>
                              </span>
                            </div>
                        </div>
                      <div class="col-md-3"> <a class="btn btn-info pull-right"href="__ROOT__/Uploads/Xiaoben/校本课程教师备课手册.doc">备课模板下载</a> </div>

                  </form> 
<!--                       <div class="col-md-6"> 
                        <a class="btn btn-success" href={:U('Student/Export/exportClassStudent',array('bj_code'=>$thisclass))}>&nbsp;导出学生名册&nbsp;</a>
                        <a class="btn btn-danger" href={:U('Student/Xs/addStudent', array('bj_code'=>$thisclass))} data-toggle='modal' data-width="600px"
            data-moveable="true" data-title="新增学生信息" title="编辑">&nbsp;新增学生&nbsp;</a>
                        <a class="btn btn-primary" href={:U('Student/Export/exportClassStudent',array('bj_code'=>$thisclass))}>&nbsp;导出学生名册&nbsp;</a>
                        
                        </div> -->
                       </div>
      </div> 
       
      

     <div class="clearfix"></div> 

        <table class="table table-striped" width="95%">
        <thead>
        <tr>
            <th class="blue">序号</th><th class="blue">任课教师</th><th class="blue">校本课程名称</th><th class="blue">资源类别</th><th class="blue">上传日期</th><th class="blue">已上传的文件</th>
        </tr>
        </thead>
        <volist name="list" id="cur" >
        <tr>
            <td>{$i}</td>
            <td>{$cur.teacher}</td> 
            <td>{$cur.cname}</td> 
            <td>{$cur.cate}</td>                     
            <td>{$cur.update_time}</td>
            <td>
            {$cur.filename}｜
            <a href= "{:U('downloadfile',array('fid'=>$cur['id']))}" ><span style="color:#0088AA"><i class="icon icon-download-alt"></i>下载</span></a>
              <!-- "__ROOT__/Uploads/Xiaoben/{$cur.url} -->
            </td>
            </tr>
        </volist>

        </table>
      <div class="row right_box text-right"> 
         {:getPagination($totalPageCount,$r)}
       </div>
    </div>
    </div>
</block>